--TEST--
Check for jsonschema  generate number
--SKIPIF--
<?php
if (!extension_loaded("jsonschema")) {
    print "skip";
}
?>
--FILE--
<?php
/* test number generate */

/* double */
$value = 123.321;
$jsonSchema = new JsonSchema(json_encode($value));
echo assert('{"type":"number","default":0,"minimum":0,"maximum":2147483647,"exclusiveMinimum":0,"exclusiveMaximum":2147483647}' == $jsonSchema->getSchema())), PHP_EOL;

/* integer */
$value = 123;
$jsonSchema = new JsonSchema(json_encode($value));
echo assert('{"type":"integer","default":0,"minimum":0,"maximum":2147483647,"exclusiveMinimum":0,"exclusiveMaximum":2147483647}' == $jsonSchema->getSchema()), PHP_EOL;
?>
--EXPECT--
1
1